package market

import (
	"account/controllers/api/v1/market"

	"github.com/gin-gonic/gin"
)

/**
  market 对应的路由组
*/
func InitMarketRouter(Router *gin.RouterGroup) {
	MakretRouter := Router.Group("market")
	{
		MakretRouter.GET("", market.MarketAllInfos)              // 查询市场信息
		MakretRouter.POST("add", market.MarketAdd)               // 增加市场信息
		MakretRouter.POST("update/:id", market.MakretUpdateInfo) // 更新市场信息
		MakretRouter.POST("active/:id", market.MarketActive)     // 删除市场信息
		MakretRouter.GET("black", market.MarketBlackAllInfos)    // 获取停用市场信息
	}
}
